package com.zlp.dto.resource;
import java.util.Date;
import com.zlp.enums.resource.ComponentDetailEnum;

import com.zlp.enums.resource.JumpTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;


@Data
@ApiModel(value = "魔方返回参数")
public class MagicCubeResp implements Serializable {

    @ApiModelProperty(value = "魔方组返回参数")
    public List<MagicCubeDetail> magicCubeDetailList = initData();

    @Data
    @ApiModel(value = "魔方明细返回参数")
    public static class MagicCubeDetail extends ResourceBaseResp {

        @ApiModelProperty(value = "图片")
        private String picture;

        @ApiModelProperty(value = "方位")
        private String position;


    }

    public static List<MagicCubeDetail> initData(){
        List<MagicCubeDetail> magicCubeDetailList = new ArrayList<>();
        MagicCubeDetail magicCubeDetail1 = new MagicCubeDetail();
        magicCubeDetail1.setPicture("https://img2.baidu.com/it/u=617579813,2960860841&fm=253&app=120&size=w931&n=0&f=JPEG&fmt=auto?sec=1670086800&t=506692e2852a258d34315eb30f27a90c");
        magicCubeDetail1.setPosition("左");
        magicCubeDetail1.setJumpType(JumpTypeEnum.JUMP_PRODUCT.getCode());
        magicCubeDetail1.setJumpObjId("10");
        magicCubeDetailList.add(magicCubeDetail1);

        MagicCubeDetail magicCubeDetail2 = new MagicCubeDetail();
        magicCubeDetail2.setPicture("https://img2.baidu.com/it/u=617579813,2960860841&fm=253&app=120&size=w931&n=0&f=JPEG&fmt=auto?sec=1670086800&t=506692e2852a258d34315eb30f27a90c");
        magicCubeDetail2.setPosition("左");
        magicCubeDetail2.setJumpType(JumpTypeEnum.JUMP_LINK.getCode());
        magicCubeDetail2.setJumpObjId("20");
        magicCubeDetailList.add(magicCubeDetail2);

        return magicCubeDetailList;


    }



}
